import request from '../serves/index'

export function getuserone( id ) {
    return request({
        url:`/one?id=${id}`,
        method:'get'
    })
}
export function getyy() {
    return request({
        url:`/actor`,
        method:'get'
    })
}
//获取评论
export function getpl(id,uid) {
    return request({
        url:`/api/remark?id=${id}&uid=${uid}`,
        method:'get'
    })
}
//添加评论
export function inserpl(content,d_id,user_id) {
    let data={
        content,d_id,user_id
    }
    return request({
        url:`/api/remark`,
        method:'post',
        data
    })
}
//点赞数加一
export function updatezan(id,iscan) {
    return request({
        url:`/updatezan?id=${id}&iscan=${iscan}`,
        method:'put',
    })
}
//我的评论
export function myremark(id) {
    return request({
      url: `/myremark?id=${id}`,
      method: 'get',
    })
  }
//删除评论
export function delremark(id) {
    return request({
      url: `/api/remark/${id}`,
      method: 'delete',
    })
  }
  //修改我的信息
export function upmyinfo(id,data) {
    return request({
      url: `/api/user/${id}`,
      method: 'put',
      data
    })
  }
//举报
export function jvbao(id,report) {
    return request({
      url: `/jb/?id=${id}&report=${report}`,
      method: 'put',
    })
  }
  //修改头像
  export function upimg(id,data) {
    return request({
      url: `/userupimg/${id}`,
      method: 'put',
      data
    })
  } 
//更多推荐
export function gdtj() {
    return request({
      url: `/gdtj`,
      method: 'get',
    })
  }
//相关视频
export function getmovie(id) {
    return request({
        url: `/api/movie?id=${id}`,
        method: 'get',
    })
}

//
export function getjr() {
    return request({
        url: '/jinri',
        method: 'get'
    })
}

